// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
	runtimeConfig: {
		appKey: 'aabbcc', // server
		public: {
			baseURL: 'http://codercba.com', // server and client
		},
	},

	// 2. 定义应用的配置(client 和 server 都是可以使用的), 可以抽取到到app.config.ts中
	appConfig: {
		title: 'Hello Nuxt3 HYKJ',
		theme: {
			primary: 'yellow',
		},
	},

	// 3. app 配置(SEO优化, 外部资源)
	app: {
		head: {
			title: 'HYKJ',
			charset: 'UTF_8',
			viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no',
			meta: [
				{
					name: 'keywords',
					content: '宏源科教 hykj',
				},
				{
					name: 'description',
					content: '手机商场',
				},
			],
			link: [
				{
					rel: 'shortcut icon',
					href: 'favicon.icon',
					type: 'image/x-icon',
				},
			],
			style: [
				{
					children: 'body{ color: red; }',
				},
			],
			script: [
				{
					src: 'http://codercba.com',
				},
			],
		},
	},
})
